package com.fand.stater.context;

import com.fand.stater.model.SysUserDetailDTO;

/**
 * Author: zhangjiabin
 * Email: javaboyok@163.com
 * CreateDate: 2021/6/17
 * Version: 1.0
 */
public class UserInfoThreadLocal {

    private static ThreadLocal<SysUserDetailDTO> UserDTO = new ThreadLocal<>();

    public static void set(SysUserDetailDTO sysUserDetailDTO){
        UserDTO.set(sysUserDetailDTO);
    }

    public static  SysUserDetailDTO get(){
        return UserDTO.get();
    }

    public static void remove(){
        UserDTO.remove();
    }

}
